<script setup>
import {getCurrentInstance} from "vue";
import { isLogin } from '~/logic'

const emit = defineEmits(['login'])
const item = getCurrentInstance().proxy.$item
const instance = getCurrentInstance()
const __option = instance?.appContext.provides.option;
const handle = () => {
  if (isLogin({emit}, __option))
    window.open(`${item.shopUrl()}/search.htm?orderType=hotsell_desc&analysis=true`)
}
</script>

<template>
  <div @click="handle">
    店铺分析
  </div>
</template>

<style scoped>

</style>
